import pygame


class Settings():
    """存储《外星人入侵》的所有设置的类"""
    def __init__(self):
        """初始化游戏的设置"""
        # 屏幕设置
        self.screen_width = 1200
        self.screen_height = 800
        self.bg_color = (230, 230, 230)
        # 飞船设置
        self.ship_image = pygame.image.load('images/ship.png')
        self.ship_speed_factor = 0.8
        # 飞船三条命
        self.ship_limit = 3
        # 子弹设置
        self.bullet_image = pygame.image.load('images/bullet3.png')
        # self.bullet_width = 5
        # self.bullet_height = 10
        # self.bullet_color = (0, 0, 0)
        self.bullet_speed_factor = 1
        # 子弹射速，最小射击间隔100毫秒
        self.openfire_time = 100
        # 外星人设置
        self.alien_image = pygame.image.load('images/alien2.png')
        self.alien_max = 10
        self.alien_speed_factor = 0.3
        # 计分
        self.alien_points = 50
